#include <iostream>
#include <algorithm>
#include <string>

using namespace std;

int main(int argc, char const *argv[])
{
    int i;
    short reg[100], sub, _max, _min;
    string word;
    
    cin >> word;
    
    for (i = 0; i < 64; i++)
        reg[i] = 0;    

    for (i = 0; i < word.length(); i++)
        reg[word[i] - 'a']++;

    _max = 0;
    _min = 999;

    for (i = 0; i < 64; i++)
    {
        _max = max(_max, reg[i]);
        if (reg[i]) _min = min(_min, reg[i]);
    }

    if (_max)
        sub = _max - _min;    
    else
        sub = 0;

    for (i = 2; i < sub; i++)
        if (!(sub % i))
            break;
    
    if (i == sub)
        cout << "Lucky Word" << endl << sub;
    else
        cout << "No Answer" << endl << 0;    
    
    return 0;
}
